import "package:flutter/material.dart";

class AnimateVipBar extends StatelessWidget {
  const AnimateVipBar({super.key});
  @override
  Widget build(BuildContext context) {
    return SliverToBoxAdapter(
      child: Container(
        margin: const EdgeInsets.only(left: 6, right: 6,bottom: 10),
        padding: const EdgeInsets.fromLTRB(18, 6, 12, 6),
        decoration: BoxDecoration(
          color: const Color.fromARGB(255, 255, 246, 249),
          borderRadius: BorderRadius.circular(8),
        ),
        child: Row(
          children: [
            const Expanded(
              child: Column(
                crossAxisAlignment: CrossAxisAlignment.start,
                children: [
                  Text(
                    '大会员显示福利',
                    style: TextStyle(
                      color: Color.fromARGB(255, 249, 104, 152),
                    ),
                  ),
                  Text(
                    '联合会员月卡随心选',
                    style: TextStyle(
                      color: Color.fromARGB(255, 249, 104, 152),
                      fontSize: 12,
                    ),
                  ),
                ],
              ),
            ),
            Row(
              children: [
                Container(
                  margin: const EdgeInsets.only(right: 10),
                  padding: const EdgeInsets.fromLTRB(12, 0, 12, 0),
                  height: 24,
                  decoration: BoxDecoration(
                      color: const Color.fromARGB(255, 255, 103, 154),
                      borderRadius: BorderRadius.circular(20)),
                  child: const Row(
                    crossAxisAlignment: CrossAxisAlignment.center,
                    children: [
                      Text(
                        '立即抢购',
                        style: TextStyle(
                          color: Colors.white,
                        ),
                      ),
                    ],
                  ),
                ),
                const Icon(
                  Icons.close,
                  color: Color.fromARGB(255, 255, 103, 154),
                  size: 16,
                ),
              ],
            )
          ],
        ),
      ),
    );
  }
}
